package com.k.kppcloud.modules.sdk.feign.admin;

import com.k.kppcloud.modules.sdk.feign.admin.domain.UserDTO;
import com.k.kppcloud.modules.sdk.feign.admin.fallback.UserControllerFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@Component
@FeignClient(name = "kpp-admin-service", fallback = UserControllerFeignFallback.class)
public interface UserControllerFeign {

    @GetMapping(value = "/admin/user/list")
    List<UserDTO> list();
}
